package com.toonan.system.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;

@Configuration
@MapperScan("com.toonan.*.mapper*")
public class MybatisPlusConfig {



	/**
	 *	 mybatis-plus分页插件
	 */
	 @Bean
	   public PaginationInterceptor paginationInterceptor() {
	        return new PaginationInterceptor();
	   }
	
	
}
